//----------------6_param------------------------------------      
var http = require('http');                          
var url = require('url');              
http.createServer(function (request, response) {                          
    if(request.url!=="/favicon.ico"){  //清除第2此访问              
        var rdata  =  url.parse(request.url,true).query;   //获取参数
         
        var user = rdata['user'];
        var pwd = rdata['pwd'];
		 
		var data = {'user':user,'pwd':pwd};  
        response.end(JSON.stringify(data));  
    }                          
}).listen(8000);                          
console.log('Server running  at  http://127.0.0.1:8000/');